WPAICG\WPAICG_Dashboard D

Total Complexity 496
Dependencies 2
Dependents 0
Total lines 3,422
Lines of code 2,616
Logical lines of code 1,196
Comment lines 591
Methods 50
Properties 1

Methods 50

Method Rating Maintainability Complexity Lines of code
aipower_save_field()
D
0
88 1,000
aipower_render_chatbot_table()
D
14
76 274
aipower_get_bot_data()
D
24
39 155
aipower_save_replicate_field()
C
35 24 75
aipower_import_bots()
C
34 23 84
aipower_load_chatbot()
C
35 23 78
aipower_export_bots()
B
33 21 96
handle_field_save()
B
32 19 112
aipower_save_content_settings()
B
38 15 64
aipower_duplicate_chatbot()
A
43 11 49
aipower_save_api_key()
A
45 11 42
aipower_save_advanced_setting()
A
44 9 43
handle_conversation_starters_save()
A
47 8 34
aipower_toggle_default_widget_status()
A
50 8 28
aipower_get_attachment_url()
A
53 8 21
aipower_save_google_safety_settings()
S
51 7 25
aipower_delete_chatbot()
S
53 7 21
sanitize_limited_roles()
S
54 6 23
aipower_reset_settings()
S
53 6 22
aipower_delete_all_bots()
S
53 6 22
get_conversation_starters()
S
54 6 21
aipower_save_azure_field()
S
55 6 18
aipower_refresh_chatbot_table()
S
57 6 14
aipower_update_module_settings()
S
51 5 26
create_wpaicg_table()
S
42 2 64
aipower_save_google_model()
S
56 5 17
aipower_save_ai_engine()
S
56 5 17
aipower_save_openai_model()
S
56 5 17
aipower_save_openrouter_model()
S
56 5 17
get_chat_icon_url()
S
65 4 9
aipower_initialize_settings_table()
S
59 3 14
validate_pages()
S
65 3 9
validate_max_tokens()
S
78 3 3
__construct()
S
51 1 25
get_instance()
S
72 2 6
sanitize_yes_no_field()
S
77 2 3
truncate_text()
S
67 2 7
sanitize_checkbox()
S
79 2 3
validate_icon_url()
S
72 2 6
validate_ai_avatar_id()
S
72 2 6
sanitize_footer_text()
S
61 1 14
validate_embedding_type()
S
75 1 4
validate_yes_no_field()
S
78 1 3
validate_position()
S
75 1 4
validate_bot_type()
S
75 1 4
validate_some_option_field()
S
82 1 3
validate_provider()
S
74 1 4
validate_bot_name()
S
82 1 3
validate_use_avatar()
S
78 1 3
validate_vectordb()
S
74 1 4